package com.example.oop.tutor;

import com.example.oop.person.Person;
import com.example.oop.person.Student;
import com.example.oop.timeslot.WeeklyTimeSlot;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class TutorGroup {
    private String id;
    private WeeklyTimeSlot timeSlot;
    private Person tutor;
    private Set<Student> students;
    private List<TutorGroupMeeting> meetings;

    public WeeklyTimeSlot getTimeSlot() {
        return timeSlot;
    }

    public Set<Student> getStudents() {
        return students;
    }

    public List<TutorGroupMeeting> getMeetings() {
        return meetings;
    }

    public Person getTutor() {
        return tutor;
    }

    public String getId(){
        return id;
    }
    void addMeeting(TutorGroupMeeting tutorGroupMeeting){
        meetings.add(tutorGroupMeeting);
    }
    public void register(Student student){
        students.add(student);
    }


    public TutorGroup(String id, WeeklyTimeSlot DayOfWeek, Person tutor){
        this.id = id;
        this.timeSlot = DayOfWeek;
        this.tutor = tutor;
        students = new HashSet<>();
        meetings = new ArrayList<>();
    }
}
